package com.chenl.provider.feign;

import com.chenl.provider.DTO.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

//@FeignClient(value = "consumer")
@FeignClient(name = "1",url = "http://localhost:8081")
public interface ConFeign {

    @GetMapping(value= "/test2/test" )
     String test();

    @PostMapping(value= "/log/testt" )
    feign.Response logTest();

    @PostMapping(value= "/log/objtest" )
    Result<Object> objtest();

    /***
     * 新-根据父级类目id查询类目树
     */
//    @PostMapping(value = "/plc/wpJobPlan/addList",  produces = {MediaType.APPLICATION_JSON_VALUE} )
//    Object queryCategoryByParentIdNew (@RequestBody List<WpJobPlanReqDto> wpJobPlanReqDtos) ;
}
